package com.hskn.hss.module.alarmperson.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hskn.hss.module.carTrack.vo.CarTrackVo;
import com.hskn.hss.module.employeeTrack.vo.EmployeeTrackVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AlarmPerson implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "alarm_person_id", type = IdType.ASSIGN_UUID)
    private String alarmPersonId;

    private String personId;
    @TableField(exist = false)
    private List<String> personIds;
    @TableField(exist = false)
    private List<String> ids;

    private String personName;

    private String depId;
    @TableField(exist = false)
    private List<String> depIds;

    private String depName;

    private String alarmTypeId;

    private String alarmTypeName;

    private String lng;

    private String lat;

    private String address;

    private Date alarmTime;

    //日期
    @TableField(exist = false)
    private String alarmDate;

    private String content;

    private String dealType;

    private String dealRemark;

    private String dealUid;

    private String personTypeId;

    private String personTypeName;

    private Date createTime;

    @TableField(exist = false)
    private String expType;

    @TableField(exist = false)
    private String personNameAndAlarmTypeName;

    private Date alarmStartTime;

    private Date alarmEndTime;

    private String employeeTrackStartId;
    private String employeeTrackEndId;
    @TableField(exist = false)
    List<EmployeeTrackVo> dangerList;
    @TableField(exist = false)
    private Integer messageType;
    @TableField(exist = false)
    private String id;
    @TableField(exist = false)
    private Date time;
    private int isKeep;

    public AlarmPerson(String alarmPersonId, String dealType, String dealRemark, String dealUid) {
        this.alarmPersonId = alarmPersonId;
        this.dealType = dealType;
        this.dealRemark = dealRemark;
        this.dealUid = dealUid;
    }

    public AlarmPerson() {
    }
    @TableField(exist = false)
    private String empHeadPortraitAlarm;

    /**
     * 是否已读(0未读  1已读)
     */
    @TableField(exist = false)
    private Integer isRead;

    //日期类型(1按天查询  2按月查询)
    @TableField(exist = false)
    private String dateType;

    /**
     * 页数
     */
    @TableField(exist = false)
    private Integer pageNum;
    /**
     * 条数
     */
    @TableField(exist = false)
    private Integer pageSize;
    /**
     * 网格Id
     */
    private String gridId;
}
